* Description: This ProjectData file contains all you need to create a Mapper Map Module.
* Comments begin with the "//" string.
*
* Modify those lines whose comments begin with "MODIFY". Do not modify the lines whose comments
* read "DO NOT MODIFY"
*
*
* When you are ready to build your Mapper Map Module, following these steps:
*
* 1) Click on the Project menu.
* 2) In the list that appears, select "Project Settings..."
* 3) Click on "Output Settings" in the left pane.
* 4) Enter the name of your Mapper Module.
* 5) Enter the Symbol of your Mapper Module. Suggest: "My Map:Mapper:SIG" where "My Map" is the
* name of your map and "SIG" is your Newton Developer Signature.
* 6) Copy the result from (5) to your clipboard.
* 7) Click on Package Settings in the left pane.
* 8) Paste (6) in the Name field.
* 9) Click OK.
* 10) Click on the Project menu.
* 11) In the list that appears, select "Build Package" and download the package to your Newton.
*
*/
constant kVersionStr := "1.0"; // MODIFY: The Version String of your Mapper Module
constant kAppTitle := kAppName && kVersionStr; // DO NOT MODIFY
constant kMapperAppSymbol := '|Mapper:ATOW|; // DO NOT MODIFY
// Define your graphics
OpenResFile(HOME&"Resources");
DefConst('kUSAGraphic, MakePixFamily(nil, nil, {rsrcSpec: "USA", bitDepth: 1})); // MODIFY: Define each graphic from your Resources file
// bitDepth can be 1, 2, or 4, corresponding
// to b&w, 4, and 16 shades of gray
DefConst('kMyGraphic, MakePixFamily(nil, nil, {rsrcSpec: "My Graphic", bitDepth: 4})); // MODIFY: kMyGraphic is the name assigned to a PICT resource named
// "My Graphic" in the ResEdit file "Resources"
CloseResFile();
// Your Mapper Module
partdata := { appSymbol: EnsureInternal(kAppSymbol), // DO NOT MODIFY
version: kVersionStr, // DO NOT MODIFY
name: "My First Map", // MODIFY: The name of your Mapper Module
maps: {
// The main map is called "main". Each subsequent map can be called something
// else (i.e. "second", "another", etc.)
main: { name: "USA", // MODIFY: The name of this particular map
icon: kUSAGraphic, // MODIFY: The graphic for this map (i.e.: kUSAGraphic)
buildings: nil,
},
second: { name: "Second Map", // MODIFY: The name of this particular map
icon: kMyGraphic, // MODIFY: The graphic for this map (i.e. kMyGraphic)
buildings: nil,
},
another: { name: "Another submap", // MODIFY: The name of this particular map
icon: nil, // No map will appear since the value for "icon" is "nil"